﻿using NHibernate.Mapping.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IceZero.DataStore.Models
{
    /// <summary>
    /// 基础操作行为
    /// </summary>
    [Class(Table = "IceZero_OperationAction")]
    public class OperationAction : ModelBase
    {
        /// <summary>
        /// 行为编码,此值需要唯一
        /// </summary>
        [Property(Column = "ActionCode", TypeType = typeof(string), Length = 200, Unique = true, NotNull = true)]
        public virtual string ActionCode { get; set; }

        /// <summary>
        /// 行为名称
        /// </summary>
        [Property(Column = "ActionName", TypeType = typeof(string), Length = 200)]
        public virtual string ActionName { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Property(Column = "Remark", TypeType = typeof(string), Length = 200)]
        public virtual string Remark { get; set; }
    }
}
